<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Type_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-type_id" data-rule="required" data-source="type/index" class="form-control selectpage" data-field="nickname" name="row[type_id]" type="text" value="{$row.type_id|htmlentities}">
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('产业类型')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-industry_id" data-rule="" data-source="industry/index" class="industry form-control selectpage"  data-field="name" name="row[industry_id]" type="text" value="{$row.industry_id|htmlentities}">
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Region_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-region_id" data-rule="required" data-source="region/index" class="form-control selectpage" data-field="nickname" name="row[region_id]" type="text" value="{$row.region_id|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Number')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-number" class="form-control" name="row[number]" type="number" value="{$row.number|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Nickname')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-nickname" class="form-control" name="row[nickname]" type="text" value="{$row.nickname|htmlentities}">
        </div>
    </div>


    <div class="form-group">
        <label for="c-avatar" class="control-label col-xs-12 col-sm-2">{:__('园区图片')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group">
                <input id="c-avatar" data-rule="" class="form-control" size="50" name="row[avatar]" type="text" value="{$row.avatar|htmlentities}">
                <div class="input-group-addon no-border no-padding">
                    <span><button type="button" id="faupload-avatar" class="btn btn-danger faupload" data-input-id="c-avatar" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp" data-multiple="false" data-preview-id="p-avatar"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                    <span><button type="button" id="fachoose-avatar" class="btn btn-primary fachoose" data-input-id="c-avatar" data-mimetype="image/*" data-multiple="false"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
                </div>
                <span class="msg-box n-right" for="c-avatar"></span>
            </div>
            <ul class="row list-inline faupload-preview" id="p-avatar"></ul>
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Area')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-area" class="form-control" name="row[area]" type="number" value="{$row.area|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Building_area')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-building_area" class="form-control" name="row[building_area]" type="number" value="{$row.building_area|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Stock_space')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-stock_space" class="form-control" name="row[stock_space]" type="number" value="{$row.stock_space|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Main_industry')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-main_industry" class="form-control" name="row[main_industry]" type="text" value="{$row.main_industry|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Fire_fighting_level')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-fire_fighting_level" class="form-control" name="row[fire_fighting_level]" type="text" value="{$row.fire_fighting_level|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Specifications')}:</label>
        <div class="col-xs-12 col-sm-8">
            <textarea id="c-specifications" class="form-control " rows="5" name="row[specifications]" cols="50">{$row.specifications|htmlentities}</textarea>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Monthly_rent')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-monthly_rent" class="form-control" name="row[monthly_rent]" type="text" value="{$row.monthly_rent|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Contacts')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-contacts" class="form-control" name="row[contacts]" type="text" value="{$row.contacts|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Contacts_phone')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-contacts_phone" class="form-control" name="row[contacts_phone]" type="text" value="{$row.contacts_phone|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Supporting')}:</label>
        <div class="col-xs-12 col-sm-8">
            <textarea id="c-supporting" class="form-control " rows="5" name="row[supporting]" cols="50">{$row.supporting|htmlentities}</textarea>
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Address')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-address" class="form-control" name="row[address]" type="text" value="{$row.address|htmlentities}">
        </div>
    </div>


    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('经纬度选择')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-lng_lat_select"
                   data-toggle="wleaflet-select"
                   data-type="marker"
                   data-input-id="c-lng_lat_select"
                   class="form-control" name="row[lng_lat_select]" type="text" value="">
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('经度')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-lng"
                   class="form-control" name="row[lng]" type="text" value="{$row.lng|htmlentities}" readonly>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('纬度')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-lat"
                   class="form-control" name="row[lat]" type="text" value="{$row.lat|htmlentities}" readonly>
        </div>
    </div>
    <!--<div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Coordinate')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-coordinate"
                   class="form-control" name="row[coordinate]" type="text" value="{$row.coordinate|htmlentities}" readonly>
        </div>
    </div>-->


    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Coordinate_region')}:</label>
        <div class="col-xs-12 col-sm-8">
            <textarea id="c-coordinate_region"
                      data-toggle="wleaflet-select"
                      data-type="polygon"
                      data-input-id="c-coordinate_region"
                      class="form-control " rows="5" name="row[coordinate_region]" cols="50">{$row.coordinate_region|htmlentities}</textarea>
        </div>
    </div>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
        </div>
    </div>
</form>
